package main

import (
	"226zy/common/consul"
	"226zy/common/grpc"
	"226zy/common/moels/mysql"
	"226zy/common/moels/redis"
	"226zy/common/nacos"
	"226zy/service/config"
	"226zy/service/internal"
	grpc2 "google.golang.org/grpc"
)

func main() {
	config.Init()
	nacos.NewNaCos()
	consul.Consul()
	mysql.MysqInit()
	redis.ExampleClient()
	nac := nacos.Config.Grpc
	grpc.RegisterGrpc(nac.Host, nac.Port, func(server *grpc2.Server) {
		internal.Register(server)
	})
}
